package ge.gen.eBdgt.vo;


public class TeamWrkLoadVO implements Comparable<TeamWrkLoadVO> {

	String icn;
	String reqEng;

	public String getIcn() {
		return icn;
	}

	public void setIcn(String icn) {
		this.icn = icn;
	}

	public String getReqEng() {
		return reqEng;
	}

	public void setReqEng(String reqEng) {
		this.reqEng = reqEng;
	}

	public boolean equals(Object o) {
		if (!(o instanceof TeamWrkLoadVO))
			return false;
		TeamWrkLoadVO n = (TeamWrkLoadVO) o;
		return n.icn.equals(icn) && n.reqEng.equals(reqEng);
	}

	public int hashCode() {
		return 31 * icn.hashCode() + reqEng.hashCode();
	}

	public String toString() {
		return icn + " " + reqEng;
	}

	public int compareTo(TeamWrkLoadVO n) {
		int lastCmp = reqEng.compareTo(n.reqEng);
		return (lastCmp != 0 ? lastCmp : icn.compareTo(n.icn));
	}
}
